﻿using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using evt;
using tools;
using System.Threading;
public class TempJumpToGame : MonoBehaviour {

	// Use this for initialization
	void Start () {
		Debug.Log ("-----------------------------"+Thread.CurrentThread.ManagedThreadId);
		Screen.sleepTimeout = SleepTimeout.NeverSleep;
		Debug.Log ("注册:LOGIN_RESULT");
		ServerEventDispather.getInstance ().AddEventDispather (ServerEvent.LOGIN_RESULT, LoginResult);
	}

	private void LoginResult(object obj){
		ServerEventDispather.getInstance ().removeAll();
		SceneManager.LoadScene (2);

	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
